﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Itech_Run.Domain.Shared.Base;

namespace Itech_Run.Sys.Domain.Entity
{

    public partial class Blog_PersonCategory: CustomAggregateRoot<string>
    {

        [ForeignKey("Sys_User")] 
        [Required]
        [StringLength(36)]
        public string UserId { get; set; }

        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        [StringLength(200)]
        public string? Description { get; set; }

        public bool? IsVisible { get; set; }

        public virtual ICollection<Blog_PersonCategory_Map> Blog_PersonCategory_Map { get; } = new HashSet<Blog_PersonCategory_Map>();

        public virtual Sys_User User { get; set; }

    }
}
